import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
import Components from '@/untils/component.js';
Vue.use(Components);
import {
	api
} from '@/untils/request.js'
Vue.prototype.$api = api
Vue.prototype.$uphttp = 'http://zwh.huijipin.cn/api/user/uploadImage'
Vue.prototype.$now= parseInt(new Date().getTime() / 1000)
import * as filters from './untils/filters'
Object.keys(filters).forEach((key) => {
	Vue.filter(key, filters[key])
})

let src1 = require('@/static/img/nosuccess.png')
Vue.prototype.$src1 = src1
let src = require('@/static/img/success.png')
Vue.prototype.$src = src
Vue.prototype.$img = (item) => 'url(' + item + ')'
// import '@/static/index.css'
Vue.config.productionTip = false
App.mpType = 'app'
import {
	showToast,tel
} from './untils/showTost.js'
import {
	height,
	handleClipboardt,
	getDateDiff,
	luyou
} from './untils/index.js'
Vue.prototype.$luyou = luyou;
Vue.prototype.$height = height();
Vue.prototype.$height = height();
Vue.prototype.$Diff = getDateDiff;
let a = uni.getStorageSync("height") + 'px'
let b = uni.getStorageSync("height")
Vue.prototype.$top = a != '0px' ? a : '30rpx';
Vue.prototype.$top1 = b != 0 ? b : '30'
Vue.prototype.$toast = showToast
Vue.prototype.$tel = tel
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
// import myTab from "@/components/tab.vue"
// import myRecommend from "@/components/recommend.vue"
// import myPinglun from "@/components/mypinglun.vue"
// import myMiaosha from '@/components/miaosha.vue'
// import jpkc from '@/components/allkecheng/jpkc.vue'
// import zb from '@/components/allkecheng/zb.vue'
// import xxk from '@/components/allkecheng/xxk.vue'
// import chuxing from '@/components/chuxing.vue'
// import ljzf from '@/components/ljzf.vue'
// import jinfenlist from '@/components/allkecheng/jifenlist.vue'
// import shoppinglist from '@/components/allkecheng/shopping.vue'
// Vue.component('j-list', jinfenlist)//积分列表
// Vue.component('s-list', shoppinglist)//商城列表
// Vue.component('xxk', xxk)//线下课列表
// Vue.component('zb', zb)//直播列表
// Vue.component('jpkc', jpkc)//精品课程列表
// Vue.component('ljzf', ljzf)
// Vue.component('chuxing', chuxing)
// Vue.component('my-miaosha', myMiaosha)
// Vue.component('my-tab', myTab)
// Vue.component('my-recommend', myRecommend)
// Vue.component('my-pinglun', myPinglun)